package com.example.shiro.service.base;

import tk.mybatis.mapper.entity.Example;

import java.io.Serializable;
import java.util.List;

/**
 * Created by hupun on 2017/5/27.
 */
public interface BaseService<E> {

    List<E> selectByExample(Example example);

    List<E> select(E e);

    E selectById(Serializable id);

    int selectCountByExample(Example example);

    int selectCount(E e);

    int delete(E e);


    int update(E e);

    int add(E e);

    int addList(List<E> list);

    E query(E m);

}